<html>
<head><meta charset="utf-8"><title>Turning off cargo check · t-compiler/rust-analyzer · Zulip Chat Archive</title></head>
<h2>Stream: <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/index.html">t-compiler/rust-analyzer</a></h2>
<h3>Topic: <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/Turning.20off.20cargo.20check.html">Turning off cargo check</a></h3>

<hr>

<base href="https://rust-lang.zulipchat.com">

<head><link href="https://rust-lang.github.io/zulip_archive/style.css" rel="stylesheet"></head>

<a name="218967518"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/Turning%20off%20cargo%20check/near/218967518" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> CryZe <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/Turning.20off.20cargo.20check.html#218967518">(Dec 06 2020 at 04:00)</a>:</h4>
<p>I can't seem to find an option to turn off cargo check. Am I blind or is there actually no such option?</p>



<a name="218975859"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/Turning%20off%20cargo%20check/near/218975859" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Kirill Bulatov <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/Turning.20off.20cargo.20check.html#218975859">(Dec 06 2020 at 08:21)</a>:</h4>
<p>Do you mean the one that's run automatically on save? <br>
I have it disabled with <code>"rust-analyzer.checkOnSave.enable": false,</code>, works for me.</p>



<a name="218985401"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/Turning%20off%20cargo%20check/near/218985401" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> CryZe <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/Turning.20off.20cargo.20check.html#218985401">(Dec 06 2020 at 12:46)</a>:</h4>
<p>It seems like when I restart VSCode it still runs cargo check once.</p>



<a name="218985947"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/Turning%20off%20cargo%20check/near/218985947" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Florian Diebold <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/Turning.20off.20cargo.20check.html#218985947">(Dec 06 2020 at 13:00)</a>:</h4>
<p>do you have <code>rust-analyzer.cargo.loadOutDirsFromCheck</code> enabled?</p>



<a name="218987248"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/Turning%20off%20cargo%20check/near/218987248" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> CryZe <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/Turning.20off.20cargo.20check.html#218987248">(Dec 06 2020 at 13:35)</a>:</h4>
<p>Yeah does that force it to run anyway? I guess that would make sense.</p>



<a name="218988900"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/Turning%20off%20cargo%20check/near/218988900" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Florian Diebold <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/Turning.20off.20cargo.20check.html#218988900">(Dec 06 2020 at 14:23)</a>:</h4>
<p>that makes RA run cargo check once at startup to get those env vars and proc macros, yes</p>



<a name="218988973"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/Turning%20off%20cargo%20check/near/218988973" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Florian Diebold <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/Turning.20off.20cargo.20check.html#218988973">(Dec 06 2020 at 14:25)</a>:</h4>
<p>I think the setting isn't named super well, especially since it's used for more than just OUT_DIRs, but I imagine we'll straighten that out when we enable it and proc macros by default</p>



<hr><p>Last updated: Aug 07 2021 at 22:04 UTC</p>
</html>